<?php

mysql_connect("localhost", "admin", "") or die(mysql_error());
mysql_select_db("test") or die(mysql_error());

// Make a MySQL Connection
$query = "SELECT * FROM example"; 
	 
$result = mysql_query($query) or die(mysql_error());


while($row = mysql_fetch_array($result)){
    // echo "<br />".$result;
	echo $row['name']. " - ". $row['age'];
	echo "<br />";
}
?>